Bug 559914 – eog doesn't apply paper setup.
authorMarek Kasik <mkasik@redhat.com>
Wed, 3 Dec 2008 10:17:45 +0000 (10:17 +0000)
committerMarek Kašík <mkasik@src.gnome.org>
Wed, 3 Dec 2008 10:17:45 +0000 (10:17 +0000)
2008-12-03  Marek Kasik  <mkasik@redhat.com>

Bug 559914 – eog doesn't apply paper setup.

* gtk/gtkpapersize.c: Call the gtk_paper_size_new_from_ppd() with width
and height in points.

svn path=/trunk/; revision=21841

ChangeLog
gtk/gtkpapersize.c

index 5250c773114949756105abf7e39d7b563b3a5b45..3f4046b5e34d6db7cf5170f0009c912016678b7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-03  Marek Kasik  <mkasik@redhat.com>
+
+       Bug 559914 – eog doesn't apply paper setup.
+
+       * gtk/gtkpapersize.c: Call the gtk_paper_size_new_from_ppd() with width
+       and height in points.
+
 2008-12-02  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        Bug 562878 – password save incorrectly set in gtkmountoperation
index 5aa64b0f9d1c2bee354254c6f5e0dd6bfd792a8d..a806ae8d95a32eecf0aaba45d5a91dfcdf1da501 100644 (file)
@@ -852,8 +852,10 @@ gtk_paper_size_new_from_key_file (GKeyFile    *key_file,
     display_name = g_strdup (name);
 
   if (ppd_name != NULL)
-    paper_size = gtk_paper_size_new_from_ppd (ppd_name, display_name,
-                                             width, height);
+    paper_size = gtk_paper_size_new_from_ppd (ppd_name,
+                                              display_name,
+                                              _gtk_print_convert_from_mm (width, GTK_UNIT_POINTS),
+                                              _gtk_print_convert_from_mm (height, GTK_UNIT_POINTS));
   else if (name != NULL)
     paper_size = gtk_paper_size_new_custom (name, display_name,
                                            width, height, GTK_UNIT_MM);